package com.xgg.taiwuinfo.utils;

import android.content.Context;

import com.xgg.taiwuinfo.R;

public class Defend {

    public final static int DD_XIELI = 0x01;
    public final static int DD_CHAIZHAO = 0x02;
    public final static int DD_SHANBI = 0x04;

    public static String getString(Context ctx , int type)
    {
        String tmpcondition = "";
        boolean haspre = false;
        if ((type & DD_XIELI) > 0)
        {
            haspre = true;
            tmpcondition = "卸力";
        }
        if ((type & DD_CHAIZHAO) > 0)
        {
            if (haspre)
                tmpcondition += "、拆招";
            else
                tmpcondition = "拆招";
            haspre = true;
        }
        if ((type & DD_SHANBI) > 0)
        {
            if (haspre)
                tmpcondition += "、闪避";
            else
                tmpcondition = "闪避";
        }
        return tmpcondition;
    }
}
